package com.easy.common;

public class Test {
    public int getValue(int i){
        int result=0;
        switch (i) {
            case 1:
                result = result + i;
            case 2:
                result = result + i * 2;
                break;
            case 3:
                result = result + i * 3;
        }
        return result;
    }
    public static void main(String[] args) {
        Test t=new Test();
        System.out.println(t.getValue(2));
        int total=0;
        for (int i=4;i<0;i++){
            if(i==0)continue;
            if(i==2)break;
            total +=i;
        }
        System.out.println(total);
    }
}
